from typing import TYPE_CHECKING

from app.db.base_class import Base
from sqlalchemy import Boolean, Column, Integer, String, text, TIMESTAMP, BigInteger, Numeric


class Favorite(Base):
    __tablename__ = 'tb_favorite'

    id = Column(BigInteger, primary_key=True)
    userId = Column('user_id', BigInteger)
    instrumentId = Column('instrument_Id', Integer, nullable=False)
    createdDate = Column('created_date', TIMESTAMP, server_default=text('CURRENT_TIMESTAMP'))


